package emu;

public class EmumDemo {
	public enum Dd{
		RED,GRUUN,BLUE
	}

	public static void main(String[] args) {
		/*for (Dd dd : Dd.values()) {
			System.out.println(dd.equals(Dd.RED));
			System.out.println(dd.name()=="RED");
			System.out.println(dd.ordinal());
			System.out.println(dd.getDeclaringClass());
			System.out.println(dd.valueOf("RED"));
		}*/
		for(Go go:Go.values()){
			System.out.println(go.getAa());
		}
	}
	public enum Go{
		A1("a1"),A2("a2"),A3("a3"),A4("a4");
		private String aa;
		public String getAa() {
			return aa;
		}
		public void setAa(String aa) {
			this.aa = aa;
		}
		private Go(String aa){
			this.aa=aa;
		}
	}

}
